package com.sophie.dao;

import com.sophie.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author: Rowena
 * @CreateTime: 2024-08-29 23:18:22
 * @Version: 1.0
 */
public interface IUserDAO {
    int register(User user)throws SQLException;
    User login(String name,String password)throws SQLException;
    long checkUserName(String userName)throws SQLException;
    List<User> getUserList()throws SQLException;
    User getUserById(int id)throws SQLException;
    int updateUser(User user)throws SQLException;
}
